package com.roadmap.struts.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

/**
 * To reuse functions of RdcAction in some actions which don't inherit from
 * RdcAction
 */
public class RdcActionImpl extends RdcAction {
	public RdcActionImpl(String smtForward) {
		super(smtForward);
	}

	@Override
	public ActionForward performAction(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response)
			throws Exception {
		return mapping.getInputForward();
	}
}
